import adminRoutes from './home/adminRoutes'
import baseRoutes from './home/baseRoutes'
import studentRoutes from './home/studentRoutes'
import teacherRoutes from './home/teacherRoutes'

export default [
  {
    path: '',
    redirect: '/login',
    meta: {
      isPublic: true,
    },
  },
  {
    path: '/login',
    component: () => import('@/pages/loginPage.vue'),
    meta: {
      isPublic: true,
    },
    name: 'login',
  },
  {
    path: '/home',
    component: () => import('@/pages/homePage.vue'),
    children: [...adminRoutes, ...baseRoutes, ...studentRoutes, ...teacherRoutes],
    name: 'home',
  },
  {
    path: '/:arg(.*)*',
    component: () => import('@/pages/loginPage.vue'),
    meta: {
      isPublic: true,
    },
  },
]
